<%-- 
    Document   : prueba
    Created on : 05-15-2009, 03:03:19 PM
    Author     : alphyon
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Validar formularios</title>
<script src="lib/jquery-1.js" type="text/javascript"></script>
<script src="lib/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$("#comentariosFrm").validate();
});
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<fieldset id="form">
	<legend>Contáctenos</legend>

	<form name="comentariosFrm" id="comentariosFrm" method="post" action="">
    <ol>
    	<li>
        	<label>Nombre: (requerido al menos dos caracteres)</label>
        	<input id="cname" name="name" class="required" minlength="2" />
        </li>
        <li>
        	<label>E-mail: (requerido)</label>

        	<input id="cemail" name="email" class="required email" minlength="2" />
        </li>
        <li>
        	<label>Tu página web: (opcional)</label>
            <input id="curl" name="url" class="url" value="" />
        </li>
        <li>
        	<label>Comentarios: (requerido)</label>

            <textarea id="ccomentario" name="comentario" class="required"></textarea>
        </li>
        <p align="center"><input type="submit" name="submit" value="Enviar" /></p>
    </ol>
    </form>
</fieldset>
</body>
</html>
